﻿using System.Collections.Generic;
using System.Xml;

namespace BuzzX8.Xmpp.DataForms
{
    public class OptionCollection : List<Option>
    {
        public void Add(string name, object value)
        {
            Add(new Option(name, value));
        }

        public void Write(XmlWriter writer)
        {
            foreach (Option option in this) option.Write(writer);
        }
    }
}
